package com.demo.verification;

import com.demo.verification.util.VerificationUtil;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * @author liangliang
 */
public class Demo {
    public static void main(String[] args) throws IOException {
        VerificationUtil verificationUtil = new VerificationUtil();
        BufferedImage bufferImage = verificationUtil.getBufferImage();
        File file  = new File("./out/");
        if(!file.exists()){
            boolean mkdir = file.mkdir();
        }
        OutputStream outputStream = new FileOutputStream("out/demo.jpg");
        VerificationUtil.output(bufferImage,outputStream);
    }
}
